c# is odd number

58

c# is odd number -

// using modulo operator %
if(num%2 == 0){
  Console.WriteLine("Number is even")
}else{
  Console.WriteLine("Number is odd")
}

Comments

Submit
0 Comments